package com.bcu.calculus.service;

import com.bcu.calculus.entity.Message;
import com.bcu.calculus.entity.Total;

import java.util.List;

public interface TotalService {

    Message<?> addTotal(Total total);

    Message<?> delTotal(String totalScoreId);

    Message<?> updateTotal(Total total);

    Message<List<Total>> selectAll();

    Message<Total> selectOneByPrimaryKey(String totalScoreId);

    Message<Total> selectOneByUserId(String userId,Integer semId);

    Message<?> totalCount(Integer totalSemId);

    Message<?> pushOneScore(Total total);

    Message<List> totalcount(Integer totalSemId);

    Message<List> totalBranch(Integer totalSemId);

    Message<List> count(Integer totalSemId);

    Message<List> getAllRank(Integer totalSemdId);

    Message<List> getAllBranchRank(Integer userBranch, Integer totalSemId);

    Message<Integer> getOneUserRankInBranch(String userId,Integer branch,Integer totalSemId);

    Message<Integer> getOneUserRank(String userId, Integer totalSemId);

    Message<Integer> getTotalScore(String totalUserId, Integer totalSemId);
}
